<?php $user=$session->read('User');?>
<div class="right_side_operate_area">
    <div class="right item_add_btn">
    <?php 
		echo $html->link("返回","/companys/person/",array("onclick"=>"history.go(-1);return false;"));
    ?>
    </div>
    
    <div class="right_side_title left">
    	<h2>
		<?php 
			$companyname=$session->read("companyname");
			$companyid = $session->read("companyid");
			echo $html->link($companyname,"/companys/showinfosummary/".$companyid);
		?>
    	</h2>
    	<div class='clear'></div>
    </div>
    <div class="clear"></div>
</div>
<div class="right_side_scollbar">
    <div class="detail_info_panel">
    	<?php echo $form -> create('persons', array('url' => '/companys/editperson/','enctype'=>'multipart/form-data','type'=> 'post','onsubmit'=>'return checksave()') ); ?>
 		<div class="details_item_line">
            <div class="details_item">
                <div class="form_left_title left">年份：</div>
                <div class="form_right_input left"><?php echo $form->value('CompPerson.person_year');?></div>
        </div>
            <div class="details_item">
                <div class="form_left_title left">姓名：</div>
                <div class="form_right_input  left"><?php echo $form->value('CompPerson.person_name');?></div>
            </div>
        </div> 
        <div class="details_item_line"> 
            <div class="details_item">
                <div class="form_left_title left">性别：</div>
                <div class="form_right_input left">
                <?php 
	                $sex=$form->value('CompPerson.sex');
	                echo $str->getsex($sex);
                ?>
                </div>
            </div>
            <div class="details_item">
                <div class="form_left_title left">出生年月：</div>
                <div class="form_right_input left"><?php echo $form->value('CompPerson.birthday');?></div>
            </div>
      </div>
      <div class="details_item_line"> 
            <div class="details_item">
                <div class="form_left_title left">籍贯：</div>
                <div class="form_right_input left"><?php echo $form->value('CompPerson.native_place');?></div>
            </div>
        	 <div class="details_item">
                <div class="form_left_title left">毕业院校：</div>
                <div class="form_right_input left"><?php echo $form->value('CompPerson.school');?></div>
            </div>
        </div>
        <div class="details_item_line"> 
            <div class="details_item">
                <div class="form_left_title left">最高学历：</div>
                <div class="form_right_input left">
                <?php 
                	$education=$form->value('CompPerson.education');
                	echo $str->geteducation($education);
                ?>
                </div>
            </div>
            <div class="details_item">
                <div class="form_left_title left">毕业时间：</div>
              	<div class="form_right_input form_date_picker left"><?php echo $form->value('CompPerson.graduation_date',array("maxlength"=>"10","onfocus"=>"WdatePicker()","style"=>"width:130px"));?></div>
           	</div>
       	</div>
       	<div class="details_item_line"> 
           	<div class="details_item">
                <div class="form_left_title left">所学专业：</div>
                <div class="form_right_input left"><?php echo $form->value('CompPerson.major');?></div>
            </div>
            <div class="details_item">
                <div class="form_left_title left">技术职称：</div>
                <div class="form_right_input left"><?php echo $form->value('CompPerson.technical_title');?></div>
            </div>
        </div>
    	<div class="details_item_line">
             <div class="details_item">
                <div class="form_left_title left">联系地址：</div>
                <div class="form_right_input left"><?php echo $form->value('CompPerson.address');?></div>
            </div>
            <div class="details_item">
                <div class="form_left_title left"><?php __("Tel")?>：</div>
                <div class="form_right_input left"><?php echo $form->value('CompPerson.tel');?></div>
            </div>
         </div>
    	<div class="details_item_line">
            <div class="details_item">
                <div class="form_left_title left"><?php __("Mail")?>：</div>
                <div class="form_right_input left"><?php echo $form->value('CompPerson.email');?></div>
            </div>
            <div class="details_item">
                <div class="form_left_title left">负责方向：</div>
                <div class="form_right_input left">
                <?php $contypeid= $form->value('CompPerson.contypeid');
                	foreach($contype as $key=>$ctype){
                		if($key==$contypeid){
                			echo $ctype;break;
                		}
                	}
                ?>
                </div>
            </div>
        </div>
        <div class="details_item_line">
        	<div class="details_item">
                <div class="form_left_title left">核心团队：</div>
                <div class="form_right_input left">
                <?php 
                	$is_core=$form->value('CompPerson.is_core');
                	echo $str->getisflag($is_core);
                ?>
                </div>
            </div>
            <div class="details_item">
                <div class="form_left_title left">留学人员：</div>
                <div class="form_right_input left">
                <?php 
                	$is_stuoversea=$form->value('CompPerson.is_stuoversea');
                	echo $str->getisflag($is_stuoversea);
                ?>
                </div>
            </div>
         </div>
         <div class="details_item_line">
            <div class="details_item">
                <div class="form_left_title left">科技人员：</div>
            	<div class="form_right_input left">
                <?php 
                	$is_technical=$form->value('CompPerson.is_technical');
                	echo $str->getisflag($is_technical);
                ?>
                </div>
            </div>
            <div class="details_item">
                <div class="form_left_title left">研发人员：</div>
            	<div class="form_right_input left">
                <?php 
                	$is_rd=$form->value('CompPerson.is_rd');
                	echo $str->getisflag($is_rd);
                ?>
                </div>
        	</div>
      	 </div>
         <div class="details_item_line">
            <div class="details_item">
                <div class="form_left_title left">实习人员：</div>
             	<div class="form_right_input left">
                <?php 
                	$is_intern=$form->value('CompPerson.is_intern');
                	echo $str->getisflag($is_intern);
                ?>
                </div>
            </div>
            <div class="details_item">
                <div class="form_left_title left">应届毕业生：</div>
            	<div class="form_right_input left">
                <?php 
                	$is_newgraduates=$form->value('CompPerson.is_newgraduates');
                	echo $str->getisflag($is_newgraduates);
                ?>
                </div>
            </div>
        </div>
        <?php if($is_intern){?>
        <div class="details_item_line">
            <div class="details_item">
                <div class="form_left_title left">实习天数：</div>
                <div class="form_right_input left"><?php echo $form->value('CompPerson.intern_days');?></div>
            </div>
        </div>
        <?php }?>
        </form>
    </div>
</div>
